﻿using Lee.Models.Entities;
using Lee.Models.Request;
using Microsoft.AspNetCore.Mvc;
using WebA.Admin.Contracts;

namespace WebApiA.Controllers
{ 
    [ApiController]
    public class BannerController : ControllerBase
    {
        private readonly ILogger<BannerController> _logger;

        private readonly IBannerContract _bannerContract;
         
        public BannerController(ILogger<BannerController> logger, IBannerContract bannerContract)
        {
            _logger = logger;
            _bannerContract = bannerContract;
        }
        [HttpGet]
        [Route("/banner/getAllBanner")]
        public IActionResult GetAllBanner()
        {
            return Ok(_bannerContract.GetAllBanner()); 
        }
    }
}
